/**
 *
 * @description:
 * @author:junyong.hong
 * @createTime:2018/1/6
 * @version:1.0.0.0
 * @history:
 *    1、
 *    2、
 *
 */
define([
    'app',
    'qsHttpFactory'
    // 'js/factory/qsHttpFactory/qsHttpFactory'
],function (app) {
    app.controller('qsHttp.controller',['$scope','qsHttpFactory',function ($scope,qsHttpFactory) {
        var vm = this;
        qsHttpFactory.all().then(function (data) {
            vm.data = data;
        });

        qsHttpFactory.find(1).then(function (data) {
            vm.cc = data;
        });

        vm.removeAll = function () {
            qsHttpFactory.flush();
        }
    }])
});

